import { defineComponent, h } from 'vue'
import * as vue from 'vue';
import { useCounter } from './counter'
import { Card } from "ant-design-vue"
const React = { createElement: vue.h, Fragment: vue.Fragment }

export default defineComponent({
    setup() {
        const { count, increment } = useCounter({ initialValue: 0, delay: 1000 })
        return () => (
            <Card style="margin-bottom: 10px">
                {count.value}
                <button onClick={increment}>点击</button>
            </Card>
        )
    }
})